package com.cloud.server.system.mapper.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
* 用户角色关联表(UserRole) 实体类
*
* @author zhangxun
* @since 2020-08-24
*/
@Data
@TableName(value = "user_role")
public class UserRole implements Serializable {
    private static final long serialVersionUID=1L;
    /*** 用户ID*/
    @TableId(type = IdType.AUTO)
    private Long id;

    /*** 用户ID*/
    @TableField("user_id")
    private Long userId;

    /*** 角色ID*/
    @TableField("role_id")
    private Long roleId;

}